
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
                template="/mobile/templates/blankPageTemp.xhtml"
                xmlns:c="http://java.sun.com/jsp/jstl/core"
                xmlns:p="http://primefaces.org/ui"
                xmlns:pm="http://primefaces.org/mobile" 
                xmlns:rich="http://richfaces.org/rich"
                xmlns:a4j="http://richfaces.org/a4j">

    <ui:define name="page">
        <pm:view id="clientData">
            <pm:header title="Parkowania">             
                <f:facet name="left"><p:button value="Wróć" icon="back" onclick="PrimeFaces.back()"/></f:facet>
            </pm:header>
            <pm:content>

                <p:dataList type="inset">
                    <h:outputLink value="#entries">Wjazdy </h:outputLink>                    

                    <h:outputLink value="#exits">Wyjazdy </h:outputLink> 
                </p:dataList>
            </pm:content>
        </pm:view>
        <pm:view id="entries">
            <pm:header title="Wjazdy">
                <f:facet name="left"><p:button value="Wróc" icon="back" onclick="PrimeFaces.back()"/></f:facet>
            </pm:header>

            <pm:content>
                <p:dataList value="#{tarrifsParks.entByClient}" var="ent">
                    <f:attribute name="filter" value="true" />
                    <h:outputLink value="#lists">                                         
                        <h2>Data: #{tarrifsParks.getParkDate(ent)} Godzina: #{ent.parkDate.hours}:#{ent.parkDate.minutes}</h2>                                                
                        <p><strong>Pojazdem: #{ent.parkingPassId.carId.numberPlate}</strong></p> 
                    </h:outputLink>
                </p:dataList>
            </pm:content>
        </pm:view>   
        <pm:view id="exits">
            <pm:header title="Wyjazdy">
                <f:facet name="left"><p:button value="Wróć" icon="back" onclick="PrimeFaces.back()"/></f:facet>
            </pm:header>

            <pm:content>
  <p:dataList value="#{tarrifsParks.extByClient}" var="ext">
                    <f:attribute name="filter" value="true" />
                    <h:outputLink value="#lists">                                         
                        <h2>Data: #{tarrifsParks.getParkDate(ext)} Godzina: #{ext.parkDate.hours}:#{ext.parkDate.minutes}</h2>                                        
                        <p><strong>Pojazdem: #{ext.parkingPassId.carId.numberPlate}</strong></p> 
                    </h:outputLink>
                </p:dataList>
            </pm:content>
        </pm:view>   




    </ui:define>
</ui:composition>